<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<ui:component>
<!-- h:inputHidden id="currentPage" replace, because if on page two fields, two elements with equal id has been used, but should be used only one -->
	<h:panelGrid style="margin-right:auto;margin-left:auto;" columns="4">
		<h:commandButton value="&lt;&lt;" type="submit" onclick="document.getElementById('currentPage').value=0" >
		</h:commandButton>
		<h:commandButton value="&lt;" type="submit" onclick="document.getElementById('currentPage').value=#{currentPage-rowsPerPage}">
		</h:commandButton>
		<h:commandButton value="&gt;" type="submit" onclick="document.getElementById('currentPage').value=#{currentPage+rowsPerPage}">
		</h:commandButton>
		<h:commandButton value="&gt;&gt;" type="submit" onclick="document.getElementById('currentPage').value=#{numberOfItems - rowsPerPage}">
		</h:commandButton>
	</h:panelGrid>
</ui:component>
</html>